import 'package:flutter/material.dart';
import 'package:flutter_base_library/app/themes/app_colors.dart';

class AppThemes {
  AppThemes._();

  static final ThemeData themData = ThemeData(
    primarySwatch: AppColors.kPrimaryColor,
    primaryColor: AppColors.kPrimaryColor,
    visualDensity: VisualDensity.adaptivePlatformDensity,
    appBarTheme: const AppBarTheme(
      centerTitle: true,
    ),
  );

  ///提交按钮样式
  static ButtonStyle buttonStyle = ButtonStyle(
    backgroundColor: MaterialStateProperty.all(AppColors.kPrimaryColor), //背景颜色
    foregroundColor: MaterialStateProperty.all(AppColors.white), //字体颜色
    overlayColor: MaterialStateProperty.all(AppColors.kPrimaryColor), // 高亮色
    elevation: MaterialStateProperty.all(0), //阴影值
    textStyle: MaterialStateProperty.all(
      const TextStyle(fontSize: 14),
    ), //字体
    // side: MaterialStateProperty.all(
    //     BorderSide(width: 1, color: Color(0xffffffff))), //边框
    shape: MaterialStateProperty.all(
      RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(24),
      ),
    ), //圆角弧度
  );
}
